SONARJAVA-6304: Implement S8218: Instant APIs should only use supported temporal units - #6039
Conversation
Code Review ✅ Approved 1 resolved / 1 findingsImplements new rule S8218 to check for unsupported ChronoUnit constants used with Instant APIs, addressing the unreachable guard finding in onMethodInvocationFound. No issues found. ✅ 1 resolved✅ Quality: Unreachable guard in onMethodInvocationFound
Implementation Status ✅ 3 of 3 objectives covered✅ SONARJAVA-6304 - 3 of 3 objectives coveredThis PR covers the implementation of rule S8218 by excluding custom TemporalUnit implementations and variable value propagation, while reporting unsupported ChronoUnit direct constants and static imports for Instant APIs. ✅ 3 covered here
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|




Summary
ChronoUnitconstants used withInstant.Links
AI disclosure